import request from '@/utils/request'

export function getOrderList(data) {
  return request({
    url: '/order/list',
    method: 'get',
    data
  })
}

export function getRefundList(data) {
  return request({
    url: '/order/refund/list',
    method: 'get',
    data
  })
}

export function postOrder(data) {
  return request({
    url: '/order',
    method: 'post',
    data
  })
}

export function putOrder(data) {
  return request({
    url: '/order',
    method: 'put',
    data
  })
}

export function putRefundApprove(data) {
  return request({
    url: '/order/refund/approve',
    method: 'put',
    data
  })
}

export function putRefundRefuse(data) {
  return request({
    url: '/order/refund/refuse',
    method: 'put',
    data
  })
}

export function putRefundShouHuo(data) {
  return request({
    url: '/order/refund/shouHuo',
    method: 'put',
    data
  })
}

export function putRefundYanhuo(data) {
  return request({
    url: '/order/refund/yanhuo',
    method: 'put',
    data
  })
}

export function putOrderFh(data) {
  return request({
    url: '/order/fh',
    method: 'put',
    data
  })
}

export function putOrderCancel(data) {
  return request({
    url: '/order/cancel',
    method: 'put',
    data
  })
}

export function putOrderRefundConfirm(data) {
  return request({
    url: '/order/refund/confirm',
    method: 'put',
    data
  })
}

export function deleteOrder(data) {
  return request({
    url: '/order',
    method: 'delete',
    data
  })
}

export function getMapList(data) {
  return request({
    url: '/map/list',
    method: 'get',
    data
  })
}

export function postMap(data) {
  return request({
    url: '/map',
    method: 'post',
    data
  })
}

export function putMap(data) {
  return request({
    url: '/map',
    method: 'put',
    data
  })
}

export function deleteMap(data) {
  return request({
    url: '/map',
    method: 'delete',
    data
  })
}
